<template>
  <section class="home">
    <el-card shadow="always" style="margin-bottom:30px" body-style="height:100%" class="bill-card">
      <el-row :gutter="20">
        <el-col :span="20"><p>Services</p></el-col>
        <!-- <el-col :span="3"><p>{{  }}</p></el-col> -->
      </el-row>
      <el-table
        :data="goodsList"
        style="width: 100%"
      >

        <el-table-column label="Title">
          <template slot-scope="scope">

            <el-row>
              {{ scope.row.goods_name }}
            </el-row>

            <el-row>
              <ul style="list-style:none;margin:0;padding:0;">
                <li v-for="(item, index) in scope.row.goods_images_url" :key="index" style="width: 70px; height: 70px;float:left;margin: 10px 10px 0 0;">
                  <el-image
                    style="width: 70px; "
                    :src="item"
                    :preview-src-list="[item]"
                  />
                </li>
              </ul>
            </el-row>

          </template>
        </el-table-column>

        <el-table-column label="Value">
          <template slot-scope="scope">{{ scope.row.goods_remark }}</template>
        </el-table-column>

        <!-- <el-table-column label="Photos">
          <template slot-scope="scope">
            <ul style="list-style:none;margin:0;padding:0">
              <li v-for="(item, index) in scope.row.uploads" :key="index">
                <el-image
                  style="width: 70px; height: 70px"
                  :src="item.url"
                  :preview-src-list="[item.url]"
                /> -->
        <!-- <img :src="item"> -->
        <!-- </li>
            </ul>
          </template>
        </el-table-column> -->
      </el-table>
    </el-card>
  </section>
</template>
<script>
export default {
  props: {
    goodsList: {
      type: Array,
      default() {
        return []
      }
    }
  },
  data() {
    return {
      goods: [],
      choose: 'choose'
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
